package top.kaoshanji.p1ch05a;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 代码清单-p1ch05a-162页b：一个会报500错误的Servlet
 * URL访问地址：/go500Error
 * @author kaoshanji
 * ^_^
 * create time 2025/4/4 15:54
 */
public class Go500Error extends HttpServlet {

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        int a = 1/0;
    }

}
